package org.come.Jpanel;

import java.awt.CardLayout;
import java.awt.Dimension;

import javax.swing.JPanel;

public class TestChildCardJpanel extends JPanel {
	private CardLayout car;
	private TestChildAttributeJpanel childAttributeJpanel;
	private TestChildTalentJpanel childTalentJpanel;
	
	public TestChildCardJpanel() {
		

        car=new CardLayout();		
		this.setPreferredSize(new Dimension(240, 214));
	    this.setLayout(car);
	    this.setOpaque(false);
	    childAttributeJpanel = new TestChildAttributeJpanel();
 		this.add(childAttributeJpanel,"l1");
 		childTalentJpanel = new TestChildTalentJpanel();
        this.add(childTalentJpanel, "l2");
		
	}

	public CardLayout getCar() {
		return car;
	}

	public void setCar(CardLayout car) {
		this.car = car;
	}

	public TestChildAttributeJpanel getChildAttributeJpanel() {
		return childAttributeJpanel;
	}

	public void setChildAttributeJpanel(
			TestChildAttributeJpanel childAttributeJpanel) {
		this.childAttributeJpanel = childAttributeJpanel;
	}

	public TestChildTalentJpanel getChildTalentJpanel() {
		return childTalentJpanel;
	}

	public void setChildTalentJpanel(TestChildTalentJpanel childTalentJpanel) {
		this.childTalentJpanel = childTalentJpanel;
	}

	
}
